<!DOCTYPE html>
<html>
<head>
    <title>广告测试机</title>
    <script type="text/javascript" src="/js/jquery-1.8.3.min.js"></script>
    <script type="text/javascript" src="/js/hprose.js"></script>
    <script type="text/javascript">
        var client = new HproseHttpClient("http://www.local.node.com:8080/", ["authorize","test"]);

        $(function(){
            $('input[name=hello]').click(function(){
                client.authorize('13521319088', 'U123456', function(result){
                    console.log(result);
                });
            });

            $('input[name=test]').click(function(){
                client.test('Hello World!',function(res){
                    console.log(res);
                });
            });
        });
    </script>
</head>
<body>
<input type="button" name="hello" value="hello" />
<input type="button" name="test" value="test" />
</body>
</html>